/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package metricmaster.gui.actualtab;

import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;

/**
 *
 * @author markblanda
 */
public class ActualPanel extends JPanel{

    private JTable actualTable;
    private ActualTableModel actualTableModel;
    private JScrollPane scrollPane;

    public ActualPanel() {
        actualTableModel = new ActualTableModel();
        actualTable = new JTable(actualTableModel);
        actualTable.setPreferredScrollableViewportSize(new Dimension(825, 480));
        actualTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        actualTable.setShowGrid(true);
        actualTable.setGridColor(Color.BLACK);
        scrollPane = new JScrollPane(actualTable);
        this.add(scrollPane);
    }
}
